package com.ss.android.article.lite.a;

import android.content.Context;

import com.ss.android.a.AbManager;
import com.ss.android.article.base.app.SingleAppData;
import com.ss.android.article.lite.ArticleApplication;
import com.ss.android.article.lite.activity.MainActivity;
import com.ss.android.common.AppConsts;
import com.ss.android.common.app.AbsApplication;
import com.ss.android.common.util.json.JsonUtil;
import com.ss.android.newmedia.MediaAppDataProvider;
import com.ss.android.newmedia.MediaAppData;

public class a implements MediaAppDataProvider {
    private static volatile SingleAppData a;

    public a() {

    }

    public final MediaAppData provide() {
        return b();
    }

    private static SingleAppData b() {
        if (a == null) {
            Class v1 = a.class;
            synchronized (v1) {
                if (a == null) {
                    SingleAppData v0_1 = new SingleAppData(ArticleApplication.getApplication(), AppConsts.DOWNLOAD_DIR, "wxcf46c7fd1ece2eef", MainActivity.class);
                    a = v0_1;
                    AbsApplication v2 = ArticleApplication.getApplication();
                    com.ss.android.l.c.c();
                    AbManager.a(v0_1.lastVersionCode);
                    v0_1.f(((Context) v2));
                    v0_1.aI();
                    JsonUtil.setJsonInstanceFactory(com.ss.android.article.base.feature.app.aa.a());
                    com.ss.android.l.c.c();
                }
            }
        }

        return a;
    }
}

